-- GENERATED SPELL FOR [Greater Lava Spider] --


function spell0_5858(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(11985,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5858', 3000, 1)
end

function Sorts_5858(pUnit, Event)
local choix_sorts_5858 = math.random(0, 0)
if choix_sorts_5858 == 0 then
pUnit:RegisterEvent('spell0_5858', 1, 1)
end
end

function mob5858_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5858', math.random(1500, 3000), 1)
end

function mob5858_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5858_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5858_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5858, 1, 'mob5858_Action')
RegisterUnitEvent(5858, 2, 'mob5858_Leave')
RegisterUnitEvent(5858, 3, 'mob5858_Kill')
RegisterUnitEvent(5858, 4, 'mob5858_Die')
